package com.ast;

public class UnaryExpNode {
    PrimaryExpNode primaryExp;
    String name;
    FuncRParamsNode funcRParams;
    String op;
    UnaryExpNode unaryExp;
    public UnaryExpNode(PrimaryExpNode primaryExp) {
        this.primaryExp = primaryExp;
    }
    public UnaryExpNode(String name, FuncRParamsNode funcRParams) {
        this.name = name;
        this.funcRParams = funcRParams;
    }
    public UnaryExpNode(String op, UnaryExpNode unaryExp) {
        this.op = op;
        this.unaryExp = unaryExp;
    }

    public PrimaryExpNode getPrimaryExp() {
        return primaryExp;
    }

    public String getName() {
        return name;
    }

    public FuncRParamsNode getFuncRParams() {
        return funcRParams;
    }

    public String getOp() {
        return op;
    }

    public UnaryExpNode getUnaryExp() {
        return unaryExp;
    }
}
